export default [
  {
    path: '',
    component: 'Layout',
    redirect: '/index',
    children: [
      {
        path: '/index',
        component: () => import('@/views/index'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: '/product',
    component: 'Layout',
    name: 'Product',
    meta: {
      title: '商品管理',
      icon: 'product',
      hidden: false,
      keepAlive: true
    },
    children: [
      {
        path: 'taocode',
        component: () => import('@/views/product/taocode/index.vue'),
        name: 'Taocode',
        meta: {
          title: '淘口令',
          icon: 'insert',
          hidden: false
        }
      }
    ]
  },
  {
    path: '/advice',
    component: 'Layout',
    name: 'Advice',
    meta: {
      title: '意见管理',
      icon: 'advice',
      hidden: false,
      keepAlive: true
    },
    children: [
      {
        path: 'user',
        component: () => import('@/views/advice/user/index.vue'),
        name: 'User',
        meta: {
          title: '用户意见',
          icon: 'show',
          hidden: false
        }
      }
    ]
  },
  {
    path: '/introduce',
    component: 'Layout',
    name: 'Introduce',
    meta: {
      title: '攻略管理',
      icon: 'introduce',
      hidden: false,
      keepAlive: true
    },
    children: [
      {
        path: 'strategy',
        component: () => import('@/views/introduce/strategy/index.vue'),        
        name: 'Strategy',
        meta: {
          title: '商品攻略',
          icon: 'insert',
          hidden: false
        }
      }
    ]
  },
  {
    path: '/category',
    component: 'Layout',
    name: 'ProductCategory',
    meta: {
      title: '商品类别',
      icon: 'category',
      hidden: false,
      keepAlive: true
    },
    children: [
      {
        path: 'index',
        component: () => import('@/views/category/index.vue'),
        name: 'Category',
        meta: {
          title: '商品类别',
          icon: 'category',
          hidden: false
        }
      }
    ]
  }
]
